#ifndef FILEINFO_H
#define FILEINFO_H

#include <QtGui>

class FileInfo
{
public:
    QString baseName;
    QString hash;
    quint64 size;

    FileInfo();
    FileInfo(QString baseName_, QString hash_, quint64 size_);
    inline QString getBaseName() { return this->baseName; }
    inline QString getHash() { return this->hash; }
    inline quint64 getSize() { return this->size; }

    friend QDataStream & operator <<(QDataStream &stream, const FileInfo &obj);
    friend QDataStream & operator >>(QDataStream &stream, FileInfo &obj);
};

#endif // FILEINFO_H
